<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跟踪状态</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=86e2297f">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=222aea35">
    <style type="text/css">
        .table-detail{
            width: 90%;
            margin: auto;
            margin-top: 20px !important;
            border:0px;
        }
        .table-detail td{
            border: 0px; height: 45px; line-height: 45px;
        }
        .table-detail textarea{
            padding-top: 5px !important;
            height: 160px;
            border: 1px solid #c8c8c8;
        }
    </style>
</head>
<body>
<div class="layout" id="edit">
    <div class="center">
        <table class="table-detail">
            <tr>
                <td width="20%">跟踪状态：</td>
                <td width="80%" style="text-align: left">
                    <select v-model="customerInfo.trackStatus">
                        <option value="1">跟踪中</option>
                        <option value="2">放弃</option>
                    </select>

                </td>
            </tr>
            <tr>
                <td valign="top">跟踪情况：</td>
                <td style="padding-top: 10px !important;"><textarea type="text" v-model="customerInfo.visitContent"></textarea></td>
            </tr>
        </table>
    </div>
    <div class="south" style="height:50px;line-height:50px;text-align:center;">
        <input type="button"  value="保存" class="btn oaBtn btn-sm" @click="save()"/>
        <!--<input type="button" style="margin-left:20px;" value="关闭" class="btn oaBtn btn-sm" @click="close()">-->
    </div>
</div>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=8e743a31"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=54c6b89c"></script>

<script src="https://file.ggxqce.com/web/vue.min.js"></script>

<script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    var edit = new Vue({
        el: "#edit",
        data: {
            currentUser: getCurrentUser(),
            pageType: "edit",
            customerInfo: {
                id: '',
                customerId: '',
                trackStatus: '1',
                visitContent: ''
            }
        },
        methods: {
            save: function () {
                if (this.customerInfo.visitContent == "") {
                    alert("请填写跟踪记录");
                    return;
                }
                $.wyui.postMethod(urlConfig.crm.exhibition.saveExhibitionCustomerVisit, trimRN(this.customerInfo), function (data) {
                    alert("操作成功");
                    parent.app.refresh();
                    api.close();
                });
            },
            close: function () {
                api.close();
            }
        },
        mounted: function () {
            //页面操作状态
            this.customerInfo.id = $.wyui.page.urlParams.id;
            this.customerInfo.customerId = $.wyui.page.urlParams.customerId;


        }
    });
</script>
</body>
</html>